package com.woniuxy02;

import java.util.Scanner;

/**
 * @author 作者
 * @create 2025-07-16 17:11
 */
public class Test15 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("输入用户名");
        String name=sc.next();
        System.out.println("输入密码");
        String password=sc.next();
        if("admin".equals(name) && "123".equals(password)){
            System.out.println("登录成功");
        }else{
            System.out.println("登录失败");
        }
    }
}
